import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    loginType:'',
    TreeRfdwnm:"",
    token:'',
    zyjjmbId:"",
    zyjjmbRfdwnm:'',
    categoryId:"10101",//分类id
    detailTypeId:'',//详情时存储的目标id
    loadingFlag:false,//全局loading标志
    isNopower:false,//是否有 权限标志
    bbyear:'2019',//报表年   存储给导出使用
  },
  mutations: {
    setLoginType(state,val){
      sessionStorage.setItem('loginType',val)
      state.loginType=val
    }
  },
  actions: {}
});
